package com.heima.stu_system;

public class PrimaryStudent extends Student {
    private String grade;

    public PrimaryStudent(String grade) {
        this.grade = grade;
    }

    public PrimaryStudent(String name, int age, String grade) {
        super(name, age);
        this.grade = grade;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public void study() {
        System.out.println(getAge() + " 岁的 " + getGrade() + "年级的 " + getName() + " 在教室里库库做高数");
    }
}
